package com.atguigu.gmall.list;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author BrookPeng
 * @Date 2020/11/25 20:41
 * @Version 1.0
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {"com.atguigu.gmall"})
@EnableScheduling // 定时器注解
// @EnableDiscoveryClient // 可被发现注册（可省略）
@EnableFeignClients(basePackages = {"com.atguigu.gmall"}) // 使用远程调用扫描
public class ServiceListApplication {

    public static void main(String[] args) {

        SpringApplication.run(ServiceListApplication.class, args); // args可以省略
    }
}
